import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: () => import('../components/Login.vue')
    },
    {
      path: '/home',
      name: 'home',
      component: () => import('../views/HomeView.vue'),
      children:[
        {
          path: '1-1',
          name: '1-1',
          // component: () => import('../views/TeacherListView.vue'),
        },
        {
          path: '1-2',
          name: '1-2',
          // component: () => import('../views/TeacherAddView.vue'),
        },
        {
          path: '2-1',
          name: '2-1',
          // component: () => import('../views/StudentList.vue'),
        },
        {
          path: '2-2',
          name: '2-2',
          // component: () => import('../views/StudentAddView.vue'),
        },
        {
          path:'3-1',
          name:'3-1',
          // component: () => import('../views/ClassView.vue')
        },
        {
          path:'3-2',
          name:'3-2',
          // component: () => import('../views/ClassView.vue')
        },
        {
          path:'4',
          name:'4',
          // component: () => import('../views/ClassView.vue')
        }
      ]
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    }
  ]
})

export default router
